BIN=code.exe
SRC=code.c
CC=gcc
FLAGS=-o
RM=rm -f

$(BIN):$(SRC)
	@$(CC) $^ $(FLAGS) $@
	@echo "link...$^...to$@"

.PHONY:clean
clean:
	@$(RM) $(BIN)
	@echo "remove...$(BIN)"

.PHONY:test
test:
	@echo $(BIN)
	@echo $(SRC)
	@echo $(CC)
	@echo $(FLAGS)
	@echo $(RM)
